โจ ์ ์ ์ธ์ฆ - ์ค๋ฒ๋๋ผ์ด๋ธ API
- URI : /api/overdrive/auth
- Method : GET
- Parameter Type : Query Params
- Product Env Request URL : https://www.library.kr/cyber/api/overdrive/auth
๐ฎ Request
-
LibraryCard : ํ์์์ด๋ (String, ํ์)
-
PIN : ๋น๋ฐ๋ฒํธ (String, ํ์)
-
example code
const requestOptions = {
method: "GET",
redirect: "follow"
};
fetch("https://www.library.kr/cyber/api/overdrive/auth?LibraryCard=albatro3&PIN=abc1234!", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
๐ Response
์ฑ๊ณต์
- 200 OK (application/xml)
<AuthorizeResponse>
<ErrorDetails>The user information could not be found.</ErrorDetails>
<Status>0</Status>
</AuthorizeResponse>
| Status code | ๋น๊ณ |
|---|---|
| 1 | ์ฑ๊ณต(์ผ์น) |
| 0 | ์คํจ |
์คํจ์ฌ์ ๋ ErrorDetails ๋ก ๋ฐํ
์คํจ์
- 405 METHOD_NOT_ALLOWED (application/json)
{
"httpStatus": "METHOD_NOT_ALLOWED",
"errorCode": null,
"errorResult": null,
"message": "Method Not Allowed",
"errors": null
}
- 500 ์๋ฒ์ค๋ฅ
{
"httpStatus": "INTERNAL_SERVER_ERROR",
"errorCode": null,
"errorResult": null,
"message": "Server Error",
"errors": null
}